package semana2.bucles.ejercicio11_divisores;

import java.util.Scanner;

public class Divisores {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		System.out.println("Introduce n: ");
		int n = scan.nextInt();
		System.out.println("Estos son los divisores de " + n);
		for (int i = 1; i <= n; i++) {
			if (n % i == 0) {
				System.out.print(i + " ");
			}
		}

	}

}
